<div class="login_wrap">   

<h1>Logowanie</h1>

<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
<?php echo $form->renderGlobalErrors() ?>  
	
<table style="width:200px;margin:40px auto">
	<?php if($form['username']->hasError()): ?><tr><td colspan="2"><?php echo $form['username']->renderError() ?></td></tr><?php endif ?>
	<tr>
		<td>Login:</td>
		<td style="width: 128px"><?php echo $form['username']->render(array('style'=>'width:126px;','title'=>'Wprowadź login')); ?></td>
	</tr>
	<tr>	
		<td>Hasło:</td>
		<td style="width: 128px"><?php echo $form['password']->render(array('style'=>'width:126px;','title'=>'Wprowadź hasło')); ?></td>
	</tr>
	<tr>	
		<td><?php echo $form['remember'] ?></td>
		<td style="width: 128px">zapamiętaj mnie</td>
	</tr>
</table>
<?php echo $form['_csrf_token'] ?>
<input type="submit" value="Zaloguj" style="margin-bottom:40px;"/>
</form>

<p>Nie masz konta? - <a href="<?php echo url_for('@sf_register') ?>">Zarejestruj się!</a></p>

<?php
/*




	<table  width="300" align="center">
		<tr>
			<td>Logowanie</td>
		</tr>
		<tr>
			<td style="vertical-align:top">
				<div>	
					<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
					
						<?php echo $form['username']->renderError() ?>
						<?php echo $form->renderGlobalErrors() ?>  
							
						<table  width="100%">
							<tr>
								<td class="register_form_label">Login</td>
								<td style="width: 128px"><?php echo $form['username'] ?></td>
							<tr>
							</tr>	
								<td class="register_form_label">Hasło</td>
								<td style="width: 128px"><?php echo $form['password'] ?></td>
							<tr>
							</tr>	
								<td class="register_form_label">Zapamietaj mnie</td>
								<td style="width: 128px"><?php echo $form['remember'] ?></td>
							</tr>
						</table>
						<?php echo $form['_csrf_token'] ?>
						<input type="submit" value="Zaloguj" class="modern_button"/>
					</form>
<p>Jeżeli nie masz konta - <a href="<?php echo url_for('@sf_register') ?>">Zarejestruj się</a></p>
				</div>
			</td>
		</tr>
		
	</table>
	
*/
?>	
	
 </div>